/*
 * myPPlayer.h
 *
 *  Created on: Oct 31, 2011
 *      Author: administratorforpc
 */

#ifndef MYPPLAYER_H_
#define MYPPLAYER_H_

class myPPlayer
{
public:
	myPPlayer();							// constructor for class
	int myHand();							// function that returns the weight of the players hand
	void giveCard(int);						// function that gives a player a new card to replace the marked card
	void playerClicked(int);				// function that toggles the bool for a given index
	bool isClicked(int);					// function that returns the bool for a given index
	int getCard(int);						// function that returns the card at a given index
	int getSuit(int);						// function that returns the suit for a given index

private:
	bool myTurn;						// checks to see if it is the players turn
	bool folded;						// checks to see if the player has folded
	int currHand[5];					// array of strings that holds the players current hand
	int currSuit[5];					// array that holds the hands suits;
	int handWeight;						// int that holds the hands weight
	bool isChecked[5];					// bool that keeps track of if the user clicked the card


	void calcMyHand();					// function to calculate how good the players hand is
	bool isTwoPair();					// check if the user has a two pair
	bool isThree();						// check if the user has a three of a kind
	bool isFour();						// check to see if the user has a four of a kind
	bool isFullHouse();					// check to see if the user has a full house
	bool isFlush();						// check to see if the user has a flush
	bool isStraight();					// check to see if the user has a straight
	bool isPair();						// check to see if the user has a pair
	int getWeights(int);				// returns weight of hand
	void sortHand();					// function to order the players hand
	void giveHand();					// function to give the player its hand
	void dupCheck();					// function that checks for dups in players hand
	void printHand();					// prints curr hand nums
};

#endif /* MYPPLAYER_H_ */
